package com.yuanqi.service;

import com.yuanqi.pojo.PurchaseReturnOrderItem;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 退货订单明细服务接口
 */
public interface PurchaseReturnOrderItemService extends IService<PurchaseReturnOrderItem> {

    /**
     * 根据退货订单ID查询明细列表
     */
    List<PurchaseReturnOrderItem> getItemsByReturnOrderId(Long returnOrderId);

    /**
     * 批量保存退货订单明细
     */
    boolean saveBatchItems(List<PurchaseReturnOrderItem> items);

    /**
     * 根据退货订单ID删除明细
     */
    boolean deleteByReturnOrderId(Long returnOrderId);
}
